<?php
Yii::import('application.components.dao.class.Dao');
class UpdateuserinfoDao extends Dao{
    
    public function attributeLabels(){
        return array(
            'title' => 'Auction Title',
            'winner_price' => 'Initial Auction Price',
            'winner_price_increment' => 'Bidding Increment'
        );
    }
        
    public function register(){
        return $this->save();
    }
    
    public function dataSource(){
        return array(
            'CustomerInfo' => array(
                'attributes'    => array(
                    'id',
                    'customer_id',
                    'first_name',
                    'last_name',
                    'address',
                    'city',
                    'zip_code',
                    'states',
                    'phone',
                    'BIO',
                    'birthday',

                ),
            )
        );
    }
    public function rules(){
        return array();
    }
    public function dataSourceRelations(){
        return array(
            'CustomerInfo' => array()
        );    
    }
}